import {http} from '../request'

// 2、定义登录函数接口
export default{
    genCaptcha(){
        return http({
            url: `/auth/genCaptcha`,
            method: 'get',
        })
    },
    login(loginForm){
        return http({
            url: `/auth/login`,
            method: 'post',
            data:loginForm
        })
    },
}